<nz-card [nzBordered]="false">
  <section class="search-section" style="margin-bottom: 48px">
    <button nz-button [nzType]="'primary'" (click)="addEntity({id:null})"  class="search-add-right">
      <i class="anticon anticon-plus"></i><span>添加</span>
    </button>
  </section>
  <nz-table #nzTable [nzData]="page.content"
            [nzPageSize]="page.size"
            [nzTotal]="page.totalElements"
            [nzFrontPagination]="false"
            [(nzPageIndex)]="page.number"
            (nzPageIndexChange)="changePageNo($event)"
            [nzLoading]="isLoading">
    <thead>
    <tr>
      <th nz-th><span>序号</span></th>
      <th nz-th><span>轮播图</span></th>
      <th nz-th><span>排序号</span></th>
      <th nz-th><span>操作</span></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of nzTable.data;let i=index">
      <td>
        {{i+1}}
      </td>
      <td><img [src]="data.mainImg" style="max-height: 120px;max-width: 120px;" alt="加载出错"/></td>
      <td>{{data.sortNum}}</td>
      <td>
        <!--<a href="javascript:void (0);" (click)="editEntity(data)">查看详情</a>-->
        <a href="javascript:void (0);" routerLink="/banner/list/edit" [queryParams]="{id: data.id,type: type}">查看详情</a>
        <nz-divider nzType="vertical"></nz-divider>
        <nz-popconfirm [nzTitle]="'确定要删除这条数据吗？'" (nzOnConfirm)="delete(data)">
          <a nz-popconfirm>删除</a>
        </nz-popconfirm>
      </td>
    </tr>
    </tbody>
  </nz-table>
</nz-card>
